import request from '@/utils/request'

// 查询文化项目列表
export function listCultureProject(query) {
  return request({
    url: '/culture/cultureProject/list',
    method: 'get',
    params: query
  })
}

// 查询文化项目字典
export function listCultureProjectDict() {
  return request({
    url: '/culture/cultureProject/list/dict',
    method: 'get'
  })
}

// 查询文化项目详细
export function getCultureProject(id) {
  return request({
    url: '/culture/cultureProject/' + id,
    method: 'get'
  })
}

// 新增文化项目
export function addCultureProject(data) {
  return request({
    url: '/culture/cultureProject',
    method: 'post',
    data: data
  })
}

// 修改文化项目
export function updateCultureProject(data) {
  return request({
    url: '/culture/cultureProject',
    method: 'put',
    data: data
  })
}

// 删除文化项目
export function delCultureProject(id) {
  return request({
    url: '/culture/cultureProject/' + id,
    method: 'delete'
  })
}
